#include<bits/stdc++.h>
using namespace std;
#define int long long

int a[5];

signed main() {
	cin >> a[1] >> a[2] >> a[3];
	sort(a + 1, a + 4);
	cout << a[1] << "->" << a[2] << "->" << a[3];
	return 0;
}
